//
//$Id: types.cpp 649 2011-02-18 18:30:44Z andrew.tsyganov $
#include "stdafx.h"
#include "include/types.h"
#include "include/subset.h"
#include "include/fa.h"

using namespace std;

void Bool_Matrix::init(size_t const nrows, size_t const ncols)
{
    nrows_ = nrows;
    ncols_ = ncols;

    (*this).resize(nrows);
    for (size_t i = 0; i < size(); ++i)
    {
        (*this)[i].resize(ncols);
    }
};

void Subset_Matrix::init(size_t const nrows, size_t const ncols)
{
    nrows_ = nrows;
    ncols_ = ncols;

    (*this).resize(nrows);
    for (size_t i = 0; i < size(); ++i)
    {
        (*this)[i].resize(ncols);
    }
};

void Subset_Matrix::clear()
{
    for (size_t i = 0; i < size(); ++i)
    {
        for (size_t j = 0; j < (*this)[i].size(); ++j)
        {
            (*this)[i][j].remove();
        }
    }
}

//EOF!
